Skip to content

fix(web): PDF comments keep their picture, close stale forms, and stay on screen - #373

Merged
tannerpolley merged 2 commits into
mainfrom
issue-372-pdf-comments-fix-the-six-problems-review
Nov 11, 2026
Merged

tannerpolley merged 2 commits into
mainfrom
issue-372-pdf-comments-fix-the-six-problems-review

Conversation

@tannerpolley

Copy link
Copy Markdown
Owner

#371 merged before its review fixes. On main:

  • an area or spot comment could be sent before its cropped picture existed;
  • a deleted comment's edit form stayed open and could recreate the comment;
  • undoing a chip deletion lost its picture;
  • at high zoom the form could open off screen;
  • the toolbar said "1 comments".

The fixes:

  • Saving now waits for the crop before the comment is published. A failed capture keeps the form open for retry.
  • The editor closes when its comment disappears.
  • The undo payload keeps the comment and its picture together.
  • The form scrolls into view when it opens.
  • The toolbar wording is fixed.

Tests: the existing PdfViewer browser case and the composer undo test are extended. The flushSync warning (item 6) comes from the existing composer path and is left out of scope.

Closes #372

🤖 Generated with Claude Code

@tannerpolley
tannerpolley merged commit c8274a9 into main Nov 11, 2026
@tannerpolley
tannerpolley deleted the issue-372-pdf-comments-fix-the-six-problems-review branch November 11, 2026 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PDF comments: fix the six problems review found after #371 merged

1 participant